package com.bolt.auth.security.common.utils;

import com.bolt.convention.data.code.ServiceCode;

/**
 * Created by Administrator on 2020/4/15.
 */
public enum  SecurityCode implements ServiceCode {
    NO_FIND("404", "AUTH", "请求链接不存"),
    INVALID_AUTHORIZATION_CODE("7", "AUTH", "无效的授权码"),
    NO_LOGIN("501", "C", "用户未登录"),
    INVALID_AUTH("401", "C", "权限无效");
    private final String code;
    private final String message;

    private SecurityCode(String code, String codeSign, String message) {
        this.code = codeSign + "_" + code;
        this.message = message;
    }

    public String code() {
        return this.code;
    }

    public String message() {
        return this.message;
    }
}

 